/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.myorg.totoBD.gui.swing.components.panel;

import org.myorg.totoBD.gui.swing.components.button.BtnCmdOk;
import org.myorg.totoBD.gui.swing.components.button.BtnCmdCancel;
import org.myorg.totoBD.gui.swing.components.button.BtnCmdApply;
import java.awt.event.ActionListener;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JPanel;

/**
 *
 * @author user
 */
public class PnlBtnGrpCommand extends JPanel {

    public PnlBtnGrpCommand(ActionListener lst)
    {
        super();

        tmkBtnCancel = new BtnCmdCancel(lst);
        tmkBtnOk = new BtnCmdOk(lst);
        tmkBtnApply = new BtnCmdApply(lst);

        GroupLayout jPanel1Layout = new GroupLayout(this);
        this.setLayout(jPanel1Layout);


        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(tmkBtnApply, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(6, 6, 6)
                .addComponent(tmkBtnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(6, 6, 6)
                .addComponent(tmkBtnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(tmkBtnApply)
                .addGap(20, 20, 20)
                .addComponent(tmkBtnOk)
                .addGap(20, 20, 20)
                .addComponent(tmkBtnCancel)
                .addGap(20, 20, 20))
        );
    }


    private JButton tmkBtnCancel;
    private JButton tmkBtnOk;
    private JButton tmkBtnApply;
}
